package com.kkb.kkbadmin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author ${author}
 * @since 2021-08-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "User对象", description = "用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户表主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "手机号")
    private String phoneNumber;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "微信号")
    private String wechat;

    @ApiModelProperty(value = "擅长技能 json对象")
    private String skill;

    @ApiModelProperty(value = "项目信息 json对象")
    private String projectInfo;

    @ApiModelProperty(value = "职业")
    private String job;

    @ApiModelProperty(value = "日薪")
    private Integer dailySalary;

    @ApiModelProperty(value = "工作年限")
    private Integer workingYear;

    @ApiModelProperty(value = "是否审核 0是未审核 1是已审核")
    private Integer isVerify;

    @ApiModelProperty(value = "是否是超级管理员 1表示是 0 表示不是")
    private Integer isAdmin;

    @ApiModelProperty(value = "是否被逻辑删除 1表示是 0 表示不是")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "头像地址")
    private String headUrl;

    @ApiModelProperty(value = "最后一次更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;


}
